package com.feib.soeasy.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;


/**
 * @title (#)CodeTable.java<br>
 * @description 代碼檔<br>
 * @author Jimmy Liu<br>
 * @version 1.0.0 2010/11/25
 * @copyright Far Eastern International Bank Copyright (c) 2010<br>
 * @2010/11/15 create by Jimmy Liu<br>
 */
@Entity
@Table(name = "CODE_TABLE")
public class CodeTable extends BaseEntity {

    private static final long serialVersionUID = -153432515369672752L;

    /**
     * PK in Table
     */
    private Long codeTablePk;

    /**
     * 代碼類別
     */
    private String codeKind;

    /**
     * 代碼
     */
    private String codeValue;

    /**
     * 代碼中文
     */
    private String codeName;

    /**
     * 排序，越小的排越前面
     */
    private Integer sortIndex;


    /**
     * @return the codeTablePk
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name="CODE_TABLE_PK", nullable=false)
    public Long getCodeTablePk() {
        return codeTablePk;
    }


    /**
     * @param codeTablePk the codeTablePk to set
     */
    public void setCodeTablePk(Long codeTablePk) {
        this.codeTablePk = codeTablePk;
    }


    /**
     * @return the codeKind
     */
    @Column(name="CODE_KIND", nullable=false, length=25)
    public String getCodeKind() {
        return codeKind;
    }


    /**
     * @param codeKind the codeKind to set
     */
    public void setCodeKind(String codeKind) {
        this.codeKind = codeKind;
    }


    /**
     * @return the codeValue
     */
    @Column(name="CODE_VALUE", nullable=false, length=10)
    public String getCodeValue() {
        return codeValue;
    }


    /**
     * @param codeValue the codeValue to set
     */
    public void setCodeValue(String codeValue) {
        this.codeValue = codeValue;
    }



    /**
     * @return the codeName
     */
    @Column(name="CODE_NAME", nullable=false, length=100)
    public String getCodeName() {
        return codeName;
    }



    /**
     * @param codeName the codeName to set
     */
    public void setCodeName(String codeName) {
        this.codeName = codeName;
    }


    /**
     * @return the sortIndex
     */
    @Column(name="SORT_INDEX")
    public Integer getSortIndex() {
        return sortIndex;
    }



    /**
     * @param sortIndex the sortIndex to set
     */
    public void setSortIndex(Integer sortIndex) {
        this.sortIndex = sortIndex;
    }

}
